package XueXi;

import java.util.Scanner;

public class IF_ELSE_IF_luojiLX {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入分数");
        double score = scanner.nextDouble();
        if (score>=0 && score<=100){  //规定数据在0~100之间  循环语句之间的嵌套
            if(score>=90){
                System.out.println("A-优秀");
            }else if(score>=70){
                System.out.println("B-良好");
            }else if(score>=60){
                System.out.println("C-及格");
            }else{
                System.out.println("D-有待提高");
            }
        }else{
            System.out.println("年轻人,不讲规则,好自为之");
        }
    }
}
